/*
 * XML Type:  MatchInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.MatchInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML MatchInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class MatchInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.MatchInfo
{
    
    public MatchInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName MATCHPCT$0 = 
        new javax.xml.namespace.QName("", "MATCHPCT");
    private static final javax.xml.namespace.QName MAXMATCHAMT$2 = 
        new javax.xml.namespace.QName("", "MAXMATCHAMT");
    private static final javax.xml.namespace.QName MAXMATCHPCT$4 = 
        new javax.xml.namespace.QName("", "MAXMATCHPCT");
    private static final javax.xml.namespace.QName STARTOFYEAR$6 = 
        new javax.xml.namespace.QName("", "STARTOFYEAR");
    private static final javax.xml.namespace.QName BASEMATCHAMT$8 = 
        new javax.xml.namespace.QName("", "BASEMATCHAMT");
    private static final javax.xml.namespace.QName BASEMATCHPCT$10 = 
        new javax.xml.namespace.QName("", "BASEMATCHPCT");
    
    
    /**
     * Gets the "MATCHPCT" element
     */
    public java.lang.String getMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MATCHPCT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MATCHPCT" element
     */
    public net.ofx.types.x2003.x04.RateType xgetMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(MATCHPCT$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "MATCHPCT" element
     */
    public void setMATCHPCT(java.lang.String matchpct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MATCHPCT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MATCHPCT$0);
            }
            target.setStringValue(matchpct);
        }
    }
    
    /**
     * Sets (as xml) the "MATCHPCT" element
     */
    public void xsetMATCHPCT(net.ofx.types.x2003.x04.RateType matchpct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(MATCHPCT$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RateType)get_store().add_element_user(MATCHPCT$0);
            }
            target.set(matchpct);
        }
    }
    
    /**
     * Gets the "MAXMATCHAMT" element
     */
    public java.lang.String getMAXMATCHAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXMATCHAMT$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MAXMATCHAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetMAXMATCHAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(MAXMATCHAMT$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "MAXMATCHAMT" element
     */
    public boolean isSetMAXMATCHAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MAXMATCHAMT$2) != 0;
        }
    }
    
    /**
     * Sets the "MAXMATCHAMT" element
     */
    public void setMAXMATCHAMT(java.lang.String maxmatchamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXMATCHAMT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXMATCHAMT$2);
            }
            target.setStringValue(maxmatchamt);
        }
    }
    
    /**
     * Sets (as xml) the "MAXMATCHAMT" element
     */
    public void xsetMAXMATCHAMT(net.ofx.types.x2003.x04.AmountType maxmatchamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(MAXMATCHAMT$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(MAXMATCHAMT$2);
            }
            target.set(maxmatchamt);
        }
    }
    
    /**
     * Unsets the "MAXMATCHAMT" element
     */
    public void unsetMAXMATCHAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MAXMATCHAMT$2, 0);
        }
    }
    
    /**
     * Gets the "MAXMATCHPCT" element
     */
    public java.lang.String getMAXMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXMATCHPCT$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MAXMATCHPCT" element
     */
    public net.ofx.types.x2003.x04.RateType xgetMAXMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(MAXMATCHPCT$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "MAXMATCHPCT" element
     */
    public boolean isSetMAXMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MAXMATCHPCT$4) != 0;
        }
    }
    
    /**
     * Sets the "MAXMATCHPCT" element
     */
    public void setMAXMATCHPCT(java.lang.String maxmatchpct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXMATCHPCT$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXMATCHPCT$4);
            }
            target.setStringValue(maxmatchpct);
        }
    }
    
    /**
     * Sets (as xml) the "MAXMATCHPCT" element
     */
    public void xsetMAXMATCHPCT(net.ofx.types.x2003.x04.RateType maxmatchpct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(MAXMATCHPCT$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RateType)get_store().add_element_user(MAXMATCHPCT$4);
            }
            target.set(maxmatchpct);
        }
    }
    
    /**
     * Unsets the "MAXMATCHPCT" element
     */
    public void unsetMAXMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MAXMATCHPCT$4, 0);
        }
    }
    
    /**
     * Gets the "STARTOFYEAR" element
     */
    public java.lang.String getSTARTOFYEAR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTOFYEAR$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "STARTOFYEAR" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetSTARTOFYEAR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(STARTOFYEAR$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "STARTOFYEAR" element
     */
    public boolean isSetSTARTOFYEAR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STARTOFYEAR$6) != 0;
        }
    }
    
    /**
     * Sets the "STARTOFYEAR" element
     */
    public void setSTARTOFYEAR(java.lang.String startofyear)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTOFYEAR$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STARTOFYEAR$6);
            }
            target.setStringValue(startofyear);
        }
    }
    
    /**
     * Sets (as xml) the "STARTOFYEAR" element
     */
    public void xsetSTARTOFYEAR(net.ofx.types.x2003.x04.DateTimeType startofyear)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(STARTOFYEAR$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(STARTOFYEAR$6);
            }
            target.set(startofyear);
        }
    }
    
    /**
     * Unsets the "STARTOFYEAR" element
     */
    public void unsetSTARTOFYEAR()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STARTOFYEAR$6, 0);
        }
    }
    
    /**
     * Gets the "BASEMATCHAMT" element
     */
    public java.lang.String getBASEMATCHAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BASEMATCHAMT$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BASEMATCHAMT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetBASEMATCHAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(BASEMATCHAMT$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "BASEMATCHAMT" element
     */
    public boolean isSetBASEMATCHAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BASEMATCHAMT$8) != 0;
        }
    }
    
    /**
     * Sets the "BASEMATCHAMT" element
     */
    public void setBASEMATCHAMT(java.lang.String basematchamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BASEMATCHAMT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BASEMATCHAMT$8);
            }
            target.setStringValue(basematchamt);
        }
    }
    
    /**
     * Sets (as xml) the "BASEMATCHAMT" element
     */
    public void xsetBASEMATCHAMT(net.ofx.types.x2003.x04.AmountType basematchamt)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(BASEMATCHAMT$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(BASEMATCHAMT$8);
            }
            target.set(basematchamt);
        }
    }
    
    /**
     * Unsets the "BASEMATCHAMT" element
     */
    public void unsetBASEMATCHAMT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BASEMATCHAMT$8, 0);
        }
    }
    
    /**
     * Gets the "BASEMATCHPCT" element
     */
    public java.lang.String getBASEMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BASEMATCHPCT$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BASEMATCHPCT" element
     */
    public net.ofx.types.x2003.x04.RateType xgetBASEMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(BASEMATCHPCT$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "BASEMATCHPCT" element
     */
    public boolean isSetBASEMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(BASEMATCHPCT$10) != 0;
        }
    }
    
    /**
     * Sets the "BASEMATCHPCT" element
     */
    public void setBASEMATCHPCT(java.lang.String basematchpct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BASEMATCHPCT$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BASEMATCHPCT$10);
            }
            target.setStringValue(basematchpct);
        }
    }
    
    /**
     * Sets (as xml) the "BASEMATCHPCT" element
     */
    public void xsetBASEMATCHPCT(net.ofx.types.x2003.x04.RateType basematchpct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(BASEMATCHPCT$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RateType)get_store().add_element_user(BASEMATCHPCT$10);
            }
            target.set(basematchpct);
        }
    }
    
    /**
     * Unsets the "BASEMATCHPCT" element
     */
    public void unsetBASEMATCHPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(BASEMATCHPCT$10, 0);
        }
    }
}
